package com.java.singleton;

/**
 * @Author: TongRui乀
 * @Date: 2019/3/5 14:51
 * @description： 饿汉模式的单例  双层Null判断
 */
public class HungerSingleton {

    /**
     * 私有化构造参数
     */
    private HungerSingleton(){}

    private static HungerSingleton instance = new HungerSingleton();

    public static HungerSingleton getInstance(){

        return instance;
    }

}
